From: Jasper St. Pierre Date: Mon, 28 Feb 2011 18:14:07 +0000 (-0500) Subject: telepathyClient: Re-open existing chat sources on Shell restart X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~8675 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=f4a000cb59875065248f435b0fd712056b3f6db9;p=gnome-shell.git telepathyClient: Re-open existing chat sources on Shell restart This allows users to continue a chat they were having after the shell is restarted. https://bugzilla.gnome.org/show_bug.cgi?id=642793 --- diff --git a/js/ui/telepathyClient.js b/js/ui/telepathyClient.js index 7dd972e7a..7bfc7ace1 100644 --- a/js/ui/telepathyClient.js +++ b/js/ui/telepathyClient.js @@ -143,6 +143,10 @@ Source.prototype = { this._notifyAvatarId = this._contact.connect('notify::avatar-file', Lang.bind(this, this._updateAvatarIcon)); this._presenceChangedId = this._contact.connect('presence-changed', Lang.bind(this, this._presenceChanged)); + // Add ourselves as a source. + Main.messageTray.add(this); + this.pushNotification(this._notification); + this._displayPendingMessages(); }, @@ -216,9 +220,6 @@ Source.prototype = { }, notify: function() { - if (!Main.messageTray.contains(this)) - Main.messageTray.add(this); - MessageTray.Source.prototype.notify.call(this, this._notification); },